package com.wu.client.vo.res.community;

import com.wu.client.vo.req.post.PostAddReq;
import com.wu.mongo.Post;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Cousin
 * @date 2025/4/7
 * @Description
 */
@Data
public class PostResp {
    private String id;
    private String content;
    private Date createdTime;
    private Integer mediaType;
    private String avatar;
    private String username;
    private Long userId;
    private Long likesCount;
    private Long commentsCount;
    private Boolean isLiked;

    private MediaInfo mediaInfo;
    private Post.Location location;
    @Data
    @AllArgsConstructor
    public static class Image{
        private String url;
    }
    @Data
    public static class MediaInfo {
        private List<Image> images = new ArrayList<>();
        private Long id;
        private String title = "未知歌曲";
        private String artists = "未知名歌手";
        private String cover = "/img/cover/1.jpg";
        private String url;
    }


}
